package com.cyh.testdesignpattern.proxy.staticmode;

import android.util.Log;

public class TeacherDaoProxy implements ITeacherDao {
    private ITeacherDao target;

    public TeacherDaoProxy(ITeacherDao target) {
        this.target = target;
    }

    @Override
    public void teach() {
        Log.i("TeacherDaoProxy", "代理对象开始代理，可以增强代码");
        target.teach();
        Log.i("TeacherDaoProxy", "代理对象结束代理，可以增强代码");
    }
}
